|
bool | bringToFront () noexcept override |
| WindowedGraphicsOutput::bringToFront() implementation.
|
|
KZ_NO_DISCARD optional< void * > | createImage (int target, void *data, int *attributes) noexcept override |
| GLGraphicsOutput::createImage() implementation.
|
|
| DefaultWaylandEGLGraphicsOutput (const DefaultWaylandEGLGraphicsOutput &)=delete |
| Copy constructor.
|
|
| DefaultWaylandEGLGraphicsOutput (const DefaultWaylandEGLGraphicsOutputProperties &properties) |
| Constructor.
|
|
| DefaultWaylandEGLGraphicsOutput (DefaultWaylandEGLGraphicsOutput &&) noexcept=delete |
| Move constructor.
|
|
bool | destroyImage (void *image) noexcept override |
| GLGraphicsOutput::destroyImage() implementation.
|
|
bool | dispatch () const noexcept |
| Dispatches queued Wayland events.
|
|
bool | dispatchPending () const noexcept |
| Dispatches queued Wayland events.
|
|
void | eventNotification (const WaylandEvent &event) noexcept override |
| AbstractDefaultWaylandContext::eventNotification() implementation.
|
|
void | gatherEvents (EventQueue &queue) override |
| EventSource::gatherEvents() implementation.
|
|
KZ_NO_DISCARD optional< SurfaceColorSpace > | getColorSpace () const noexcept override |
| GLGraphicsOutput::getColorSpace() implementation.
|
|
KZ_NO_DISCARD optional< GraphicsContextAPI > | getGraphicsContextAPI () const noexcept override |
| GLGraphicsOutput::getGraphicsContextAPI() implementation.
|
|
KZ_NO_DISCARD optional< void * > | getNativeContextHandle () const noexcept override |
| GLGraphicsOutput::getNativeContextHandle() implementation.
|
|
KZ_NO_DISCARD optional< void * > | getNativeDisplayHandle () const noexcept override |
| GLGraphicsOutput::getNativeDisplayHandle() implementation.
|
|
optional< NativeEventHandle > | getNativeEventHandle () const noexcept override |
| EventSource::getNativeEventHandle() implementation.
|
|
KZ_NO_DISCARD optional< void * > | getNativeSurfaceHandle () const noexcept override |
| GLGraphicsOutput::getNativeSurfaceHandle() implementation.
|
|
KZ_NO_DISCARD optional< NativeWindowHandle > | getNativeWindowHandle () const noexcept override |
| WindowedGraphicsOutput::getNativeWindowHandle() implementation.
|
|
KZ_NO_DISCARD GLProcPointer | getProcAddress (string_view functionName) override |
| GLGraphicsOutput::getProcAddress() implementation.
|
|
KZ_NO_DISCARD optional< SurfaceClientAPI > | getSurfaceClientAPI () const noexcept override |
| GLGraphicsOutput::getSurfaceClientAPI() implementation.
|
|
KZ_NO_DISCARD Matrix4x4 | getTargetTransformation () const noexcept override |
| GLGraphicsOutput::getTargetTransformation() implementation.
|
|
KZ_NO_DISCARD const WaylandDisplay & | getWaylandDisplay () const noexcept |
| Gets the WaylandDisplay.
|
|
KZ_NO_DISCARD optional< unsigned int > | getWindowHeight () const noexcept override |
| WindowedGraphicsOutput::getWindowHeight() implementation.
|
|
KZ_NO_DISCARD optional< int > | getWindowPositionX () const noexcept override |
| WindowedGraphicsOutput::getWindowPositionX() implementation.
|
|
KZ_NO_DISCARD optional< int > | getWindowPositionY () const noexcept override |
| WindowedGraphicsOutput::getWindowPositionY() implementation.
|
|
KZ_NO_DISCARD optional< string > | getWindowTitle () const noexcept override |
| WindowedGraphicsOutput::getWindowTitle() implementation.
|
|
KZ_NO_DISCARD optional< unsigned int > | getWindowWidth () const noexcept override |
| WindowedGraphicsOutput::getWindowWidth() implementation.
|
|
bool | hideWindow () noexcept override |
| WindowedGraphicsOutput::hideWindow() implementation.
|
|
bool | makeCurrent () override |
| GLGraphicsOutput::makeCurrent() implementation.
|
|
bool | makeFullscreen () noexcept override |
| WindowedGraphicsOutput::makeFullscreen() implementation.
|
|
bool | makeMaximized () noexcept override |
| WindowedGraphicsOutput::makeMaximized() implementation.
|
|
bool | makeMinimized () noexcept override |
| WindowedGraphicsOutput::makeMinimized() implementation.
|
|
bool | makeRegular () noexcept override |
| WindowedGraphicsOutput::makeRegular() implementation.
|
|
void | modeChangeNotification (int width, int height, int refresh) noexcept override |
| AbstractDefaultWaylandContext::modeChangeNotification() implementation.
|
|
bool | moveWindow (int positionX, int positionY) noexcept override |
| WindowedGraphicsOutput::moveWindow() implementation.
|
|
DefaultWaylandEGLGraphicsOutput & | operator= (const DefaultWaylandEGLGraphicsOutput &)=delete |
| Copy assignment operator.
|
|
DefaultWaylandEGLGraphicsOutput & | operator= (DefaultWaylandEGLGraphicsOutput &&) noexcept=delete |
| Move assignment operator.
|
|
bool | registerFrameCallback (function< void()> &callback) noexcept |
| Registers a frame callback in Wayland.
|
|
void | registryAddedNotification (uint32_t name, const char *interfaceName, uint32_t version) noexcept override |
| AbstractDefaultWaylandContext::registryAddedNotification() implementation.
|
|
bool | releaseCurrent () override |
| GLGraphicsOutput::releaseCurrent() implementation.
|
|
bool | resize (unsigned int width, unsigned int height) noexcept override |
| WindowedGraphicsOutput::resize() implementation.
|
|
void | resizeNotification (int windowWidth, int windowHeight) noexcept override |
| AbstractDefaultWaylandContext::resizeNotification() implementation.
|
|
bool | resizeWindow (unsigned int width, unsigned int height) noexcept override |
| WindowedGraphicsOutput::resizeWindow() implementation.
|
|
void | seatCapabilitiesNotification (uint32_t capabilities) noexcept override |
| AbstractDefaultWaylandContext::seatCapabilitiesNotification() implementation.
|
|
bool | setWindowTitle (string_view title) noexcept override |
| WindowedGraphicsOutput::setWindowTitle() implementation.
|
|
bool | showWindow () noexcept override |
| WindowedGraphicsOutput::showWindow() implementation.
|
|
bool | swapBuffers () override |
| GLGraphicsOutput::swapBuffers() implementation.
|
|
bool | swapInterval (int interval) override |
| GLGraphicsOutput::swapInterval() implementation.
|
|
void | updateCache (int width, int height) noexcept |
| Updates the target layout area size.
|
|
| ~DefaultWaylandEGLGraphicsOutput () override |
| Destructor.
|
|
KZ_NO_DISCARD Vector2 | getDpi () const noexcept |
| Returns the resolution of the target coordinate system in dots per inch.
|
|
KZ_NO_DISCARD unsigned int | getHeight () const noexcept |
| Returns the height of layout area in the target coordinate system.
|
|
KZ_NO_DISCARD unsigned int | getWidth () const noexcept |
| Returns the width of layout area in the target coordinate system.
|
|
virtual | ~GraphicsOutput ()=default |
| Destructor.
|
|
virtual | ~EventSource ()=default |
| Destructor.
|
|
virtual | ~GLGraphicsOutput ()=default |
| Destructor.
|
|
virtual | ~WindowedGraphicsOutput ()=default |
| Destructor.
|
|
| AbstractDefaultWaylandContext ()=default |
| Constructor.
|
|
| AbstractDefaultWaylandContext (AbstractDefaultWaylandContext &&) noexcept=delete |
| Move constructor.
|
|
| AbstractDefaultWaylandContext (const AbstractDefaultWaylandContext &)=delete |
| Copy constructor.
|
|
AbstractDefaultWaylandContext & | operator= (AbstractDefaultWaylandContext &&) noexcept=delete |
| Move assignment operator.
|
|
AbstractDefaultWaylandContext & | operator= (const AbstractDefaultWaylandContext &)=delete |
| Copy assignment operator.
|
|
virtual | ~AbstractDefaultWaylandContext ()=default |
| Destructor.
|
|
Class that represents the default Wayland EGL graphics output.
- Since
- Kanzi 3.9.8
- See also
- AbstractDefaultWaylandContext for Wayland-specific callbacks.
bool kanzi::wayland::DefaultWaylandEGLGraphicsOutput::registerFrameCallback |
( |
function< void()> & | callback | ) |
|
|
noexcept |
Registers a frame callback in Wayland.
The best way to organize a rendering loop in Wayland is to let the compositor control when it is time to render a frame. To do this, use this function to register a frame callback that compositor calls for each frame.
Using Wayland rendering loop allows to save computer resources if compositor determines that your application must be rendered at lower refresh rate or not rendered. For example, when the application is off-screen or minimized.
Keep in mind that Wayland controls when the rendering occurs. Do not make any assumptions about the time between frames.
- Parameters
-
callback | Callback function to call each frame. |
- Returns
- On success, true, otherwise false.